/*
 * Exception.h
 *
 *  Created on: Nov 7, 2010
 *      Author: ezbe
 */

#ifndef EXCEPTION_H_
#define EXCEPTION_H_

#include <string>

// TODO: derive from std::exception
class Exception {
public:
	Exception();
	Exception(std::string cause);
	virtual ~Exception();

	virtual bool hasCause() { return cause.length() != 0; }

	/**
	 * NOTE: this is public
	 */
	std::string cause;

};

#endif /* EXCEPTION_H_ */
